
<div class="row mt-4">
  <div class="col-lg-12">
    <div class="card-pagination">
      <!-- <ul class="pagination" v-if="row.last_page<20">
        <li class="page-item" :class="row.current_page<=1?'disabled':''"><a class="page-link"
            @click="row.current_page>1?get(row.current_page-1):''">上一页</a></li>
        <li v-for="(item, index) in row.last_page" :key="index" class="page-item"
          :class="{'active':item==row.current_page}" @click="get(item)"><a class="page-link">{{ item
            }}</a></li>
        <li class="page-item" :class="row.current_page>=row.last_page?'disabled':''"><a
            class="page-link"
            @click="row.last_page>row.current_page?get(row.current_page+1):''">下一页</a></li>
      </ul> -->
      
      <ul class="pagination">
        <li class="page-item" :class="row.current_page<=1?'disabled':''"><a class="page-link"
            @click="row.current_page>1?get(row.current_page-1):''">上一页</a></li>
            <li class="page-item" @click="get(row.current_page-4)" v-if="row.current_page-4>=1"><a class="page-link">{{ row.current_page-4 }}</a></li>
        <li class="page-item" @click="get(row.current_page-3)" v-if="row.current_page-3>=1"><a class="page-link">{{ row.current_page-3 }}</a></li>
        <li class="page-item" @click="get(row.current_page-2)" v-if="row.current_page-2>=1"><a class="page-link">{{ row.current_page-2 }}</a></li>
        <li class="page-item" @click="get(row.current_page-1)" v-if="row.current_page-1>=1"><a class="page-link">{{ row.current_page-1 }}</a></li>
        <li class="page-item" :class="{'active':row.current_page==row.current_page}" @click="get(row.current_page)" v-if="row.current_page"><a class="page-link">{{ row.current_page }}</a></li>
        <li class="page-item" @click="get(row.current_page+1)" v-if="row.current_page+1<=row.last_page"><a class="page-link">{{ row.current_page+1 }}</a></li>
        <li class="page-item" @click="get(row.current_page+2)" v-if="row.current_page+2<=row.last_page"><a class="page-link">{{ row.current_page+2 }}</a></li>
        <li class="page-item" @click="get(row.current_page+3)" v-if="row.current_page+3<=row.last_page"><a class="page-link">{{ row.current_page+3 }}</a></li>
         <li class="page-item" @click="get(row.current_page+4)" v-if="row.current_page+4<=row.last_page"><a class="page-link">{{ row.current_page+4 }}</a></li>
        <li class="page-item" :class="row.current_page>=row.last_page?'disabled':''"><a
            class="page-link"
            @click="row.last_page>row.current_page?get(row.current_page+1):''">下一页</a></li>
      </ul>
    </div>
  </div>
</div>